package calorie.com.calorie.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lxh.baselibray.net.ServiceGenerator;

import java.util.List;

import calorie.com.calorie.R;
import calorie.com.calorie.response.GoodsListResponce;

/**
 * Created by chenxi on 2019/4/22.
 */

public class GoodsDetailPicAdapter extends BaseQuickAdapter<String,BaseViewHolder> {

    public GoodsDetailPicAdapter(int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper,String item) {
        ImageView in =  helper.getView(R.id.goods_detail_pic);
        Glide.with(mContext).load(ServiceGenerator.BASE_URL + ":9023/image/" + item).into(in);//显示商品详情图片



    }
}
